/*
 * BuildingManager.cpp
 *
 *  Created on: 2013-1-22
 *      Author: heqiu
 */

#include "Global.h"

void BuildingManager::loadImage() {
	map<uint32_t, UnitBuilding *>::iterator it;
	for (it = m_mapPtr.begin(); it != m_mapPtr.end(); it++) {
		BuildingType * pType =
				g_GlobalData.g_BuildingTypeManager.m_mapPtr[it->second->m_iType];
		pType->loadImage();
		it->second->setSurface(pType->m_pGuudSurface);
	}
}
